<div class="advSearch">
<fieldset>
<script>
{literal}
function SEO2submit(form)
{
    var datastr = '';
    var fields  = form.getElementsByTagName('INPUT');
    for (var i=0; i<fields.length; i++)
     	if (fields[i].type=="text")
	    datastr += escape(fields[i].value) + '/';
     	else if (fields[i].type=="radio" && fields[i].checked)
	    datastr += fields[i].name + '/' + escape(fields[i].value) + '/';
    fields  = form.getElementsByTagName('SELECT');
    for (var i=0; i<fields.length; i++)
     	    for (var j=0; j<fields[i].length; j++)
		if (fields[i][j].selected)
	    	    datastr += fields[i].name + '/' + escape(fields[i][j].value) + '/';

	document.location.href=form.action+datastr;
}
{/literal}
</script>
<form method="get" action="{$URL_search}" 
{php}
global $URLMethod;
if ($URLMethod==2) print "onsubmit='SEO2submit(this); return false;'";
{/php}
>

<label>{#PLIGG_Visual_Search_Keywords#}:</label> <input name="search" type="text" size="60"/>
<br /><br />
<label>{#PLIGG_Visual_Search_Story#}:&nbsp;&nbsp;&nbsp;&nbsp;</label>
	<select name="slink">
		<option value="3" selected="selected">{#PLIGG_Visual_Search_Story_Title_and_Description#}</option>
		<option value="1">{#PLIGG_Visual_Search_Story_Title#}</option>
		<option value="2">{#PLIGG_Visual_Search_Story_Description#}</option>												
	</select>
	
<label>{#PLIGG_Visual_Search_Category#}:</label>
	<select name="scategory" >
		{$category_option}
	</select>

<label>{#PLIGG_Visual_Search_Status#}:</label>
	<select name="status">
		<option value="all" selected="selected">{#PLIGG_Visual_Search_Status_All#}</option>
		<option value="published">{#PLIGG_Visual_Search_Status_Published#}</option>
		<option value="queued">{#PLIGG_Visual_Search_Status_Upcoming#}</option>												
	</select><br /><br />
	<input type="hidden" name="stags" value="1"/> 
	<input name="adv" type="hidden" value="1" />		
	<input name="advancesearch" value="搜&nbsp;&nbsp;&nbsp;索" type="submit" class="searchBtn"/>


</form>
</fieldset>
</div>